﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="malladd.aspx.cs" Inherits="sysadmin_Mall_malladd" %>
<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>新增商城</title>
    <link href="../images/skin.css" rel="stylesheet" type="text/css" />
    <link href="../../css/admin.css" rel="stylesheet" type="text/css" />
    <script src="../../javascript/jquery-1.3.2.min.js" type="text/javascript"></script>
    
    <style>
    #ul{
margin:2px;
padding:2px;
width:700px;
}
#ul li{
float:left;
list-style-type:none;
width:100px;
}

    </style>
</head>
<body>
    <form id="form1" runat="server">
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <!--头部开始-->
  <tr>
    <td width="17" valign="top" background="../images/mail_leftbg.gif"><img src="../images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="../images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31" width="100%"> <div class="titlebt">新增商城 </div>  </td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="../images/mail_rightbg.gif"><img src="../images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
   <!--头部结束-->
  <tr>
    <td valign="middle" background="../images/mail_leftbg.gif"></td>
    <td valign="top" bgcolor="#F7F8F9">
    <!--内容开始-->
    
  <hr />
   
    <div style="text-align:center">
        <table cellspacing="0" width="80%"  summary="The technical specifications of the Apple PowerMac G5 series"> 
<caption> </caption> 

<tr> 
<td style="width:100px; " align="right" valign="top" >商城类型：</td> 
<td align="left" >
<div id="type" style="border:solid 1px #7F9DB9; width:700px">
<ul id="ul">
<asp:Literal runat="server" ID="ltlType"></asp:Literal>
</ul>

</div>
</td> 
</tr> 
<tr> 
<td style="width:100px; " align="right" >商城名称：</td> 
<td align="left" ><asp:TextBox runat="server" ID="txtName"  Width="180px"></asp:TextBox></td> 
</tr> 
<tr> 
<td style="width:100px; " align="right" >商城标题：</td> 
<td align="left"><asp:TextBox runat="server" ID="txtTitle" Width="180px"></asp:TextBox></td> 
</tr> 
<tr> 
<td style="width:100px; " align="right" >商城连接：</td> 
<td align="left"><asp:TextBox runat="server" ID="txtURL" Width="180px"></asp:TextBox></td> 
</tr> 
<tr> 
<td style="width:100px; " align="right" >商城Logo：</td> 
<td align="left"><asp:FileUpload runat="server" ID="fileUpload" Width="180px" /> </td> 
</tr> 
<tr> 
<td style="width:100px; " align="right" >所在地：</td> 
<td align="left"><asp:TextBox runat="server" ID="txtAddress" Width="180px"></asp:TextBox></td> 
</tr> 
<tr> 
<td style="width:100px; " align="right" >客服电话：</td> 
<td align="left"><asp:TextBox runat="server" ID="txtTel" Width="180px"></asp:TextBox></td> 
</tr> 
<tr> 
<td style="width:100px; " align="right" >序号：</td> 
<td align="left"><asp:TextBox runat="server" ID="txtSort" Width="180px"></asp:TextBox> </td> 
</tr> 
<tr> 
<td style="width:100px; " align="right" >是否启用：</td> 
<td align="left"><asp:CheckBox runat="server" ID="chkIsopen" Checked="true"/></td> 
</tr> 
<tr> 
<td style="width:100px; " align="right" >是否认证：</td> 
<td align="left"><asp:CheckBox runat="server" ID="chkIsAudit" Checked="true"/></td> 
</tr> 
<tr> 
<td style="width:100px; " align="right" >星级：</td> 
<td align="left"><asp:TextBox runat="server" ID="txtStart" Width="50"></asp:TextBox>
点击次数：<asp:TextBox runat="server" ID="txtClick" Width="50"></asp:TextBox>
推荐次数：<asp:TextBox runat="server" ID="txtRecoms" Width="50"></asp:TextBox>
批评次数：<asp:TextBox runat="server" ID="txtCriticis" Width="50"></asp:TextBox>
</td> 
</tr> 
<tr> 
<td style="width:100px; " align="right" valign="top" >支持服务：</td> 
<td align="left"><asp:TextBox runat="server" ID="txtServices" Width="600" TextMode="MultiLine" Height="30"></asp:TextBox></td> 
</tr> 
<tr>  
<td style="width:100px; " align="right" valign="top" >商城简介：</td> 
<td align="left"><asp:TextBox runat="server" ID="txtdesc" Width="600" TextMode="MultiLine" Height="50" ></asp:TextBox></td> 
</tr> 
<tr>  
<td style="width:100px; " align="right" valign="top" >商城介绍：</td> 
<td align="left"> <FCKeditorV2:FCKeditor ID="txtInfo" runat="server" ToolbarSet="Basic" Height="200" Width="700">
        </FCKeditorV2:FCKeditor></td> 
</tr> 
<tr> 
<td colspan="2">
<asp:Button runat="server" ID="btnSubmit" Text="提交" CssClass="ACT_btn" 
        OnClientClick="javascript:return GetMallType()" onclick="btnSubmit_Click" />
      
<asp:Button runat="server" ID="btnCancel" Text="返回" CssClass="ACT_btn" onclick="btnCancel_Click"  />
<input type="hidden" id="hiddenIdlist" runat="server" />
<input type="hidden" id="hiddenMallNo" runat="server" />
</td> 
</tr> 


</table> 
<input type="hidden" runat="server" id="hiddenLogo" />
    </div>
      <!--内容结束-->
    </td>
    <td background="../images/mail_rightbg.gif"></td>
  </tr>
  
  
  <!--底部开始-->
  <tr>
    <td valign="bottom" background="../images/mail_leftbg.gif"><img src="../images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="../images/buttom_bgs.gif"><img src="../images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="../images/mail_rightbg.gif"><img src="../images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
  <!--底部结束-->
</table>
    </form>
    <script language="javascript" type="text/javascript">
    function GetMallType()
    {
   
        var idList="";
        $("input[name='Malltype']").each(function(){
          if($(this).attr("checked")==true){
              idList+=$(this).attr("value")+",";
          }
        })
         if(idList=="")
          {
            alert("请选择商城类型！");
            return false
          }else{
            var name=$('#<%=txtName.ClientID %>').val();
            if(name=""){
              alert("请输入商城名称！");
              return false;
            }else{
            $('#<%=hiddenIdlist.ClientID %>').val(idList);
            return true;
            }
            
          }
    }
    
    </script>
</body>
</html>

